import java.io.*;
import java.util.Properties;

public class TestProperties {
    public static void main(String[] args) throws IOException {
        Properties properties=new Properties();
        properties.load(TestProperties.class.getResourceAsStream("/file.properties"));
        System.out.println(properties.getProperty("age"));
        String address=properties.getProperty("address");
        String b=address.substring(address.lastIndexOf("/")+2);
        System.out.println("address="+address+"-----b="+b);


    }
}